import request from '@/libs/request';

export function getOrganizationInfo() {
  return request({
    url: '/organizationInfo',
    method: 'get',
  });
}

export function getOrganizationInfoRoles(data) {
  return request({
    url: '/organizationInfoRoles?org_code='+data,
    method: 'get',
  });
}

export function getParentUids(data,role) {
  return request({
    url: '/getParentUids?org_code='+data+'&code='+role,
    method: 'get',
  });
}

export function cancelUser(data) {
  return request({
    url: '/user/user/cancel?id='+data,
    method: 'get',
  });
}

export function delUser(data) {
  return request({
    url: '/user/user/del?id='+data,
    method: 'get',
  });
}